07. Lab: Secure Your Dog API

Lab: Secure Your Dog API

Reuse your Dog REST API code from Lesson 2 and secure it using Basic Authentication.

  • Step 1: Add the necessary dependencies for Spring Security in the Maven POM file.

  • Step 2: Create the necessary security configuration class that extends WebSecurityConfigurerAdapter to secure your API with Basic Authentication.

  • Step 3: Test that your API is now secured with basic authentication and still operates appropriately for an authenticated user.

Secure Your Dog API Lab

Task List:

Task Feedback:

Securing an API is extremely important to keep your information private and avoid undesired changes. Great work!